apiready = function(){

           //render();
           //setRefreshHeader();
           //api.showProgress();//显示加载进度框
           //loadballshow();
           api.ajax({
                url:apiUrl+'app_index.php?readtype='+apiread+'&action=selllist',
                method:'get',
                cache:'false',
                timeout:30,
                dataTpye:'json',
                },function(ret,err){               
                 if(ret){
                        var data=ret.data;
                        var content = $api.byId('sell-content');
                        var tpl = $api.byId('sell-template').text;
                        var tempFn = doT.template(tpl);
                        content.innerHTML = tempFn(data);
                        api.parseTapmode();
						echo.init();
						loadballhide();//隐藏加载进度框
                }else{
                api.alert({msg:('错误码：'+err.code+'；错误信息：'+err.msg+'网络状态码：'+err.statusCode)});
                }
                });

           }
 
	
        var swiper = new Swiper('.swiper-container', {
            pagination: '.swiper-pagination',
            autoplay:3000,
            autoplayDisableOnInteraction:false
       });
function doSearch(){
		$api.addCls($api.dom(".aui-searchbar-wrap"),"focus");
		$api.dom('.aui-searchbar-input input').focus();
	}
function cancelSearch(){
		$api.removeCls($api.dom(".aui-searchbar-wrap.focus"),"focus");
		$api.val($api.byId("search-input"),'');
		$api.dom('.aui-searchbar-input input').blur();
	}
	function clearInput(){
		$api.val($api.byId("search-input"),'');
	}
	function search(){
		var content = $api.val($api.byId("search-input"));
		if(content){
			api.alert({
			    title: '搜索提示',
			    msg: '您输入的内容为：'+content
			});
		}else{
			api.alert({
			    title: '搜索提示',
			    msg: '您没有输入任何内容'
			});
		}
		cancelSearch();
	}